Skip to main content
Version: 6.0

Change Request Time Entry Service

This service defines all methods for working with change requests for time entries in TimePunch. It is used to search for, review, approve or reject requested changes.


GetChangeRequestCountAndDate

Returns the number of change requests and the date of the last change request.

Tuple<int, DateTime> GetChangeRequestCountAndDate(
out TpFault fault,
TpAuthentication authentication,
ChangeRequestTimeEntrySearchDto searchDto);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationAuthentication object with the user credentials.
searchDtoSearch criteria for change requests.

SearchChangeRequestTimeEntries

Searches for change requests that match the specified search criteria.

List<ChangeRequestTimeEntryDto> SearchChangeRequestTimeEntries(
out TpFault fault,
TpAuthentication authentication,
ChangeRequestTimeEntrySearchDto searchDto);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationUser authentication.
searchDtoContains the search parameters for change requests.

GetAllChangeRequestsByApprover

Reads all change requests assigned to a specific approver.

List<ChangeRequestTimeEntryDto> GetAllChangeRequestsByApprover(
out TpFault fault,
TpAuthentication authentication,
Guid approverId);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationUser authentication details.
approverIdThe ID of the approver.

DeleteChangeRequestTimeEntries

Deletes change requests based on a list of time booking IDs.

void DeleteChangeRequestTimeEntries(
out TpFault fault,
TpAuthentication authentication,
List<Guid> entryIds);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationAuthentication object.
entryIdsList of IDs of the change requests to be deleted.

DeclineChangeRequestTimeEntry

Declines a change request.

void DeclineChangeRequestTimeEntry(
out TpFault fault,
TpAuthentication authentication,
Guid crTimeEntryId,
string declineReason);
Needed PermissionchangeRequests@manage
faultOutContains the error if an exception occurs.
authenticationAuthentication object.
crTimeEntryIdID of the change request to be declined.
declineReasonReason for the rejection.

ApplyChangeRequestTimeEntry

Takes an approved change request and applies it to the time entry.

TimeEntryDto ApplyChangeRequestTimeEntry(
out TpFault fault,
TpAuthentication authentication,
Guid crTimeEntryId);
Needed PermissionchangeRequests@manage
faultOutContains the error if an exception occurs.
authenticationAuthentication data.
crTimeEntryIdID of the change request to be applied.

SaveChangeRequestTimeEntry

Validates and saves a change request for a time entry.

ChangeRequestTimeEntryDto SaveChangeRequestTimeEntry(
out TpFault fault,
TpAuthentication authentication,
ChangeRequestTimeEntryDto crTimeEntry,
List<CustomFieldContentDto> customFieldContents);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationAuthentication object.
crTimeEntryThe change request to be validated and saved.
customFieldContentsList of custom fields for the time entry.

GetChangeRequestTimeEntry

Reads an existing change request by its ID.

ChangeRequestTimeEntryDto GetChangeRequestTimeEntry(
out TpFault fault,
TpAuthentication authentication,
Guid crTimeEntryId);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationUser authentication.
crTimeEntryIdID of the change request.

GetChangeRequestApprover

Reads the approvers for specific user IDs.

List<ChangeRequestApproverDto> GetChangeRequestApprover(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds);
Needed PermissionchangeRequests@access
faultOutContains the error if an exception occurs.
authenticationAuthentication object.
userIdsList of user IDs for which the approvers are queried.

SetChangeRequestApprover

Sets or updates the approver for change requests.

void SetChangeRequestApprover(
out TpFault fault,
TpAuthentication authentication,
ChangeRequestApproverDto approver);
Needed PermissionchangeRequests@admim
faultOutContains the error if an exception occurs.
authenticationAuthentication data.
approverThe approver to be set.

DeleteChangeRequestApprover

Deletes the approver for a specific user.

void DeleteChangeRequestApprover(
out TpFault fault,
TpAuthentication authentication,
Guid userId);
Needed PermissionchangeRequests@admim
faultOutContains the fault if an exception occurs.
authenticationUser authentication.
userIdUser ID whose approver is to be deleted.